import { useRoutes } from 'react-router-dom';
import routesCore from './routes';

// useRoutes管理路由
const routes = [...routesCore];
function RenderRouter() {
  const element = useRoutes(routes);
  return element;
}

export default RenderRouter;
